using RStudio.InputManager;
using TMPro;
using UnityEngine;
using UnityEngine.EventSystems;


/// <summary>
/// 
/// </summary>
public class AppEntry : MonoBehaviour
{
    public TMP_Text m_Text;


    public void Start()
    {
        new InputCenter();

        InputCenter.Get<MouseInteraction>(m_Text.gameObject).OnEnter += OnEnter;
        InputCenter.Get<MouseInteraction>(m_Text.gameObject).OnExit += OnExit;
    }



    private void OnEnter(PointerEventData data)
    {
        m_Text.text = "Mouse Enter";
    }
    private void OnExit(PointerEventData data)
    {
        m_Text.text = "Mouse Exit";
    }
}
